package com.yun.controller;


import com.atguigu.springcloud.entity.CommonResult;
import com.yun.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import com.yun.domain.Order;
/**
 * @Author: fxy
 * @Date: 2022/08/17/14:10
 * @Description:
 */
@RestController
public class OrderController
{
    @Resource
    private OrderService orderService;


    @GetMapping("/order/create")
    public CommonResult create(Order order)
    {
        orderService.create(order);
        return new CommonResult(200,"订单创建成功");
    }
}